package day_2023_7_to_10;

import java.util.Arrays;

/**
 * @author haomin
 * @date 2023/08/18 23:28
 **/
public class Day_8_18 {
    class Solution {
        public int majorityElement(int[] nums) {
            Arrays.sort(nums);
            return nums[nums.length/2];
        }
    }
}